var Imp = JavaImporter(
                    Packages.java.lang,
                    Packages.java.io,
                    Packages.com.hz.actor,
                    Packages.com.hz.main,
                    Packages.com.hz.map,
                    Packages.com.hz.ui,
                    Packages.com.hz.core,
                    Packages.com.hz.common,
                    Packages.com.hz.net,
                    Packages.com.google.gson,
                    Packages.java.util.concurrent
                            );

with(Imp){
    // var m = _.find(GameWorld.myPlayer.missionList, function(m){return m && m.name == "前往亡者之地"});
    // if(m)
    //     cmd.log(m.submitJumpMapID+ "|" +  m.npcId);
    // else{
    //     cmd.log("找不到任务")
    // }

    // var npcs = GameWorld.getNPCList();
    // _.each(npcs, function(npc){
    //     cmd.log(npc.getName() + ":" + npc.getId());
    // });
/**
 * 31175 迎客殿 30 3
 * 16    神剑广场 3  44
 * 
 * 
 * 
 * 
 * 
 * 
 */

cmd.closeAllUI();
// cmd.log("---------------------");属性
cmd.init({
    attrConfig:[9,0,1,0,0]
});
//cmd.acceptMission("丛林守卫","消灭腐化的生物");
// cmd.acceptMission("日常任务列表","精灵之森林初阶段");
// cmd.acceptMission("日常任务列表","封印墓地初阶任务");

//接任务
// var mission = cmd.acceptMission("怒风守卫利昂","前往亡者之地");
// var mission = cmd.acceptBattleMission("","击败邪灵腐化术师");
// cmd.log("-----" + mission.name);
// mission.doAcceptEndCheck();
//杀怪, 做任务
// cmd.killMonster([{name:"邪灵屠虐者",count:3}]);
//交任务
// cmd.finishMission("前往亡者之地");
// cmd.acceptMission("特攻队长-史刚","（精英任务）反击准备工作");

// cmd.finishMission("（精英任务）反击准备工作");
// cmd.cuitableEquip();
// cmd.cuitableEquip();
// var equips = cmd.cuitableEquip();

// _.each(equips, function(e){
//     cmd.log(e.name + "," + e.type + "," +e.slotPos);
// })

    // public short reqAgi;
    // public short reqCon;
    // public short reqIlt;
    // public byte reqLv;
    // public short reqStr;
    // public short reqWis;
// cmd.log(equips.length);
// cmd.killMonsterWithItem("腐化尸", "防腐化药剂", 5);
// cmd.test();


// cmd.missionAutoMove("医疗药品短缺");
// cmd.realMove(2,13);

// cnd.alert(new com.google.gson.Gson().toJson(GameWorld.myPlayer));
// cmd.finishMission("怒风族长老","前往亡者之地");
// cmd.log("任务结束");
//真实移动 遇怪
// cmd.alert(cmd.getPagItems().length);
// cmd.useConsumableItem("活力药草");
//cmd.alert("杀死怪物完毕");

//cmd.abandonMission("消灭腐化的生物");
}
// cmd.allocAttrPoint([1,0,0,0,0]);
// cmd.killMonster([{name:"白发刀客",count:10}]);

// cmd.finishMission("被封锁的桥");

// cmd.acceptMission("修真者梦龙","前往神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.test();
// cmd.acceptMission("世界村村长","初入世界 1");
// cmd.finishMission("初入世界 1");
// cmd.acceptMission("云裳","初入世界 2");
// cmd.finishMission("初入世界 2");
// cmd.acceptMission("云裳","初入世界 3");
// cmd.finishMission("初入世界 3");
// cmd.acceptMission("东海","初入世界 4");
// cmd.killMonster([{name:"哈士奇", count:1}]);
// cmd.finishMission("初入世界 4");
// cmd.acceptMission("东海","初入世界 5");
// cmd.finishMission("初入世界 5");
// cmd.acceptMission("小悦","初入世界 6");
// cmd.killMonster([{name:"小偷", count:1}]);
// cmd.finishMission("初入世界 6");
// cmd.acceptMission("小悦","初入世界 7");
// cmd.finishMission("初入世界 7");
// cmd.acceptMission("悲剧哥","初入世界 8");
// cmd.finishMission("初入世界 8");
// cmd.acceptMission("井","井水");
// cmd.finishMission("井水");
// cmd.acceptMission("世界村村长","初入世界 9");
// cmd.finishMission("初入世界 9");
// cmd.acceptMission("轩姐","进入世界");
// cmd.finishMission("进入世界");
// cmd.jumpMap("迎客殿");
// cmd.acceptMission("迎客道人","蜀山的邀请函");
// cmd.finishMission("蜀山的邀请函");
// cmd.acceptMission("迎客道人","领路人【紫嫣】");
// cmd.finishMission("领路人【紫嫣】");
// cmd.acceptMission("紫嫣","小心后面！");
// cmd.killMonster([{name:"偷袭的箭手", count:4}]);
// cmd.finishMission("小心后面！");
// cmd.acceptMission("紫嫣","事情不简单");
// cmd.finishMission("事情不简单");
// cmd.acceptMission("紫嫣","帮助剑客韩松");
// cmd.killMonster([{name:"围攻的教众", count:8}]);
// cmd.finishMission("帮助剑客韩松");
// cmd.acceptMission("紫嫣","前往迎客殿");
// cmd.finishMission("前往迎客殿");
// cmd.acceptMission("紫嫣","阻止亥起进攻大殿");
// cmd.finishMission("阻止亥起进攻大殿");
// cmd.acceptMission("打败人王亥起","单挑的邀请");
// cmd.killMonster([{name:"亥起", count:1}]);
// cmd.finishMission("单挑的邀请");
// cmd.acceptMission("打败人王亥起","赢得单挑");
// cmd.finishMission("赢得单挑");
// cmd.acceptMission("紫嫣","阻止亥起进攻大殿"); 需要2次验证
// cmd.finishMission("阻止亥起进攻大殿");
// cmd.acceptMission("紫嫣","清除余党");
// cmd.finishMission("清除余党");
// cmd.acceptMission("剑客严人英","帮助剑客严人英");
// cmd.killMonster([{name:"魔教枪兵", count:10}]);
// cmd.finishMission("帮助剑客严人英");
// cmd.acceptMission("剑客严人英","帮助剑客李文衍");
// cmd.killMonster([{name:"魔教刀兵", count:10}]);
// cmd.finishMission("帮助剑客李文衍");
// cmd.acceptMission("紫嫣","前往神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("紫嫣","前往神剑广场");
// cmd.jumpMap("神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("紫嫣","修真者梦龙");
// cmd.finishMission("修真者梦龙");
// cmd.acceptMission("修真者梦龙","被封锁的桥");
// cmd.killMonster([{name:"魔教箭手",count:10},{name:"魔教修真者",count:10}]);
// cmd.finishMission("被封锁的桥");
// cmd.acceptMission("天王屠夫","击败魔教屠夫");
// cmd.killMonster([{name:"魔教屠夫", count:1}]);
// cmd.finishMission("击败魔教屠夫");
// cmd.acceptMission("天王屠夫","桥已打通");
// cmd.finishMission("桥已打通");
// cmd.acceptMission("修真者梦龙","前往神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("修真者梦龙","清扫剑阵周围");
// cmd.killMonster([{name:"魔教刀手", count:15}]);
// cmd.finishMission("清扫剑阵周围");
// cmd.acceptMission("修真者梦龙","启动天雷大阵");
// cmd.finishMission("启动天雷大阵");
// cmd.acceptMission("神剑核心","谁又偷袭？！");
// cmd.finishMission("谁又偷袭？！");
// cmd.acceptMission("魔教三雄","击败魔教三雄");
// cmd.killMonster([{name:"魔教三雄", count:3}]);
// cmd.finishMission("击败魔教三雄");
// cmd.acceptMission("魔教三雄","果然厉害");
// cmd.finishMission("果然厉害");
// cmd.acceptMission("梦龙","前往殿前广场");
// cmd.finishMission("前往殿前广场");
// cmd.acceptMission("修真者梦龙","清理刀客");
// cmd.killMonster([{name:"红发刀客",count:10},{name:"白发刀客",count:10},{name:"志天笑",count:1}]);
// cmd.finishMission("清理刀客");
// cmd.acceptMission("修真者梦龙","前往蜀山后山");
// cmd.finishMission("前往蜀山后山");
// cmd.acceptMission("修真者梦龙","消灭斑纹豹");
// cmd.killMonster([{name:"斑纹豹", count:20}]);
// cmd.finishMission("消灭斑纹豹");
// cmd.acceptMission("修真者梦龙","继续前进");
// cmd.finishMission("继续前进");
// cmd.acceptMission("修真者梦龙","帮助严峰");
// cmd.killMonster([{name:"魔教恶僧",count:10},{name:"魔教刺客",count:10}]);
// cmd.finishMission("帮助严峰");
// cmd.acceptMission("严峰","英雄救美");
// cmd.killMonster([{name:"魔教恶僧",count:10},{name:"魔教刺客",count:10}]);
// cmd.finishMission("英雄救美");
// cmd.acceptMission("丽莎","视察山道");
// cmd.finishMission("视察山道");
// cmd.acceptMission("修真者梦龙","狂风挡路");
// cmd.finishMission("狂风挡路");
// cmd.acceptMission("白日死","击败白日死");
// cmd.killMonster([{name:"白日死", count:1}]);
// cmd.finishMission("击败白日死");
// cmd.acceptMission("白日死","怪风已除");
// cmd.finishMission("怪风已除");
// cmd.acceptMission("修真者梦龙","前往镇妖塔");
// cmd.jumpMap("镇妖塔");
// cmd.finishMission("前往镇妖塔");
// cmd.acceptMission("修真者梦龙","助阵");
// cmd.finishMission("助阵");
// cmd.acceptMission("玄真道人","清除魔教刀客");
// cmd.killMonster([{name:"魔教刀客", count:20}]);
// cmd.finishMission("清除魔教刀客");
// cmd.acceptMission("玄真道人","清除剑客");
// cmd.killMonster([{name:"魔教剑客", count:20}]);
// cmd.finishMission("清除剑客");

// cmd.acceptMission("玄真道人","步步紧逼");
// cmd.acceptMission("吴用","击败魔天王吴用");
// cmd.acceptMission("魔天王吴星","击败魔天王吴星");

// cmd.finishMission("击败魔天王吴用");
// cmd.finishMission("击败魔天王吴星");
// cmd.finishMission("步步紧逼","百炼银龙剑");

// cmd.finishMission("击败魔教教主");

// cmd.acceptMission("教主任独行","强者的证明");
// cmd.finishMission("强者的证明");
// cmd.acceptMission("教主任独行","神龙降临");
// cmd.finishMission("神龙降临");
// cmd.acceptMission("神龙炎帝","你还是来迟了");
// cmd.finishMission("你还是来迟了");
// cmd.acceptMission("神龙炎帝","前往起源之地");
// cmd.jumpMap("起源之地");
// cmd.finishMission("前往起源之地");
// cmd.acceptMission("长老","英雄的诞生!");
// cmd.finishMission("英雄的诞生!");
// cmd.acceptMission("长老","获取新的城市");
// cmd.finishMission("获取新的城市");
// cmd.toCity();//进入自己的城市

// cmd.acceptMission("西城士兵","紫云山");
// cmd.finishMission("紫云山");
// cmd.acceptMission("侍卫军长","不速之客");
// cmd.killMonster([{name:"侍卫军", count:15}]);
// cmd.finishMission("不速之客");
// cmd.acceptMission("侍卫军长","不速之客");// 此处有问题
// cmd.killMonster([{name:"侍卫军长", count:1}]);
// cmd.finishMission("不速之客");
// cmd.acceptMission("侍卫军长","刺客");
// cmd.finishMission("刺客");
// cmd.acceptMission("刺客","隐藏的敌人");
// cmd.killMonster([{name:"刺客", count:20}]);
// cmd.finishMission("隐藏的敌人");
// cmd.acceptMission("史玉","史玉");
// cmd.finishMission("史玉");
// cmd.acceptMission("史玉","无路可退");
// cmd.finishMission("无路可退");
// cmd.acceptMission("史玉","伏兵");
// cmd.finishMission("伏兵");
// cmd.acceptMission("史玉","前后夹击");
// cmd.killMonster([{name:"禁卫兵",count:20},{name:"杀手",count:20}]);
// cmd.finishMission("前后夹击");
// cmd.acceptMission("史玉","西域杀手");
// cmd.npcBattle("","西域杀手");
// cmd.npcBattle("","西域杀手");
// cmd.finishMission("西域杀手");
// cmd.acceptMission("史玉","前往紫云山");
// cmd.jumpMap("紫云山");
// cmd.finishMission("前往紫云山");
// cmd.acceptMission("史玉","妖术师");
// cmd.finishMission("妖术师");
// cmd.acceptMission("妖术师","树妖");
// cmd.killMonster([{name:"树妖", count:20}]);
// cmd.finishMission("树妖");
// cmd.acceptMission("史玉","伤势");
// cmd.finishMission("伤势");
// cmd.acceptMission("侍卫军长","禁卫军");
// cmd.killMonster([{name:"禁卫军", count:20}]);
// cmd.finishMission("禁卫军");
// cmd.acceptMission("侍卫军长","阴谋");
// cmd.killMonster([{name:"侍卫军长", count:1}]);
// cmd.finishMission("阴谋");
// cmd.acceptMission("侍卫军长","冒进");
// cmd.finishMission("冒进");
// cmd.acceptMission("妖术师","妖术师");
// cmd.killMonster([{name:"妖术师", count:1}]);
// cmd.finishMission("妖术师");

// cmd.acceptMission("","失魂沙漠的灾难");
// cmd.finishMission("失魂沙漠的灾难");
// cmd.acceptMission("沙漠游牧民族代表","消灭恐怖的秃鹫群");
// cmd.acceptMission("","驱赶秃鹫群");
// cmd.killMonster([{name:"饥饿的秃鹫", count:20}]);
// cmd.finishMission("消灭恐怖的秃鹫群");
// cmd.acceptMission("沙漠游牧民族代表","鹰身人的威胁");
// cmd.killMonster([{name:"鹰身人哨兵", count:16}]);
// cmd.finishMission("鹰身人的威胁");
// cmd.acceptMission("沙漠游牧民族代表","火元素的侵袭");
// cmd.killMonster([{name:"火元素", count:16}]);
// cmd.finishMission("火元素的侵袭");
// cmd.acceptMission("沙漠游牧民族代表","赤炎戈壁的异变");
// cmd.acceptMission("沙漠游牧民族代表","沙漠上的尸体");
// cmd.finishMission("沙漠上的尸体");
// cmd.acceptMission("游民的尸体","游骑兵的袭击");
// cmd.finishMission("游骑兵的袭击");
// cmd.acceptMission("游骑首领","游骑兵");
// cmd.killMonster([{name:"游骑兵",count:10},{name:"游骑女兵",count:10}]);
// cmd.finishMission("游骑兵");
// cmd.acceptMission("游骑首领","疯狂的游民");
// cmd.killMonster([{name:"游骑首领", count:1}]);
// cmd.finishMission("疯狂的游民");
// cmd.acceptMission("游民的尸体","未完之事");
// cmd.finishMission("未完之事");
// cmd.acceptMission("沙漠游牧民族代表","游民的请求");
// cmd.jumpMap("沙漠营地");
// cmd.finishMission("游民的请求");
// cmd.acceptMission("沙漠游牧民族代表","沙漠营地");
// cmd.acceptMission("沙漠游牧民族代表","沙漠的原居民");
// cmd.killMonster([{name:"豹", count:12}]);
// cmd.finishMission("沙漠的原居民");
// cmd.acceptMission("沙漠游牧民族代表","前往营地");
// cmd.finishMission("前往营地");
// cmd.acceptMission("沙漠游牧民族代表","野兽的袭击");
// cmd.finishMission("野兽的袭击");
// cmd.acceptMission("紫豹王","紫豹王来袭");
// cmd.finishMission("紫豹王来袭");
// cmd.acceptMission("游民首领","游民的营地");
// cmd.finishMission("游民的营地");
// cmd.acceptMission("游民首领","疯狂的源头");
// cmd.finishMission("疯狂的源头");
// cmd.acceptMission("游民首领","疯狂的源头");
// cmd.finishMission("疯狂的源头");
// cmd.acceptMission("游民首领","阻止他们");
// cmd.killMonster([{name:"游民族人", count:18}]);
// cmd.finishMission("阻止他们");
// cmd.acceptMission("游民首领","疯狂元素");
// cmd.killMonster([{name:"迷幻之火", count:20}]);
// cmd.finishMission("疯狂元素");
// cmd.acceptMission("沙漠旅人","妻子的复仇");
// cmd.killMonster([{name:"游民族人", count:20}]);
// cmd.finishMission("妻子的复仇");
// cmd.acceptMission("游民首领","疯狂之源");
// cmd.killMonster([{name:"迷幻之火", count:1}]);
// cmd.finishMission("疯狂之源");
// cmd.acceptMission("游骑兵","地狱的使者");
// // 此处有问题。。有2个地狱使者
// cmd.acceptMission("地狱使者","地狱使者");
// cmd.finishMission("地狱使者");
// cmd.acceptMission("游骑兵","地狱之火");
// cmd.killMonster([{name:"地狱之火", count:20}]);
// cmd.finishMission("地狱之火");
// cmd.acceptMission("地狱使者","勾魂使");
// cmd.killMonster([{name:"地狱使者", count:1}]);
// cmd.finishMission("勾魂使");
// cmd.acceptMission("游骑兵","完成沙漠初级阶段任务");
// cmd.acceptMission("游骑兵","进入地狱");
// cmd.jumpMap("熔岩地狱一层");
// cmd.finishMission("进入地狱");
// cmd.acceptMission("游骑兵","熔岩地狱");
// cmd.finishMission("熔岩地狱");
// cmd.acceptMission("小阎王","小阎王");// // // // TODO 此处有问题。。。不接任务。。。
// cmd.finishMission("小阎王");
// cmd.acceptMission("小阎王","火元素的归顺");
// cmd.killMonster([{name:"火元素", count:20}]);
// cmd.finishMission("火元素的归顺");
// cmd.acceptMission("小阎王","地狱的势力");
// cmd.finishMission("地狱的势力");
// cmd.acceptMission("小阎王","猎杀鹰身人");
// cmd.killMonster([{name:"鹰身人", count:20}]);
// cmd.finishMission("猎杀鹰身人");
// cmd.acceptMission("小阎王","警告鹰身人");
// cmd.killMonsterWithItem(["鹰身人"],"鹰身人羽毛",8);
// cmd.finishMission("警告鹰身人");
// cmd.acceptMission("鹰身人首领","鹰身人");
// cmd.killMonster([{name:"鹰身人首领", count:1}]);
// cmd.finishMission("鹰身人");
// cmd.acceptMission("小阎王","黑鬼兵");
// cmd.finishMission("黑鬼兵");
// cmd.acceptMission("小阎王","黑鬼军团");
// cmd.killMonster([{name:"黑鬼兵",count:12},{name:"黑鬼指挥官",count:1}]);
// cmd.finishMission("黑鬼军团");
// cmd.acceptMission("小阎王","探索地狱");
// cmd.finishMission("探索地狱");
// cmd.acceptMission("鬼将","地狱骑兵");
// cmd.killMonster([{name:"地狱骑兵", count:9}]);
// cmd.finishMission("地狱骑兵");
// cmd.acceptMission("鬼将","鬼将");
// cmd.killMonster([{name:"鬼将", count:1}]);
// cmd.finishMission("鬼将");
// cmd.jumpMap("熔岩地狱二层");
// cmd.acceptMission("黑鬼天王","黑鬼天王");
// cmd.finishMission("黑鬼天王");
// cmd.acceptMission("黑鬼天王","地狱的黑暗");
// cmd.acceptMission("嫉妒的小鬼","嫉妒的小鬼");
// cmd.killMonster([{name:"地狱业火",count:12},{name:"岩狱腐狮",count:12}]);
// cmd.killMonster([{name:"小鬼", count:15}]);
// cmd.finishMission("嫉妒的小鬼");
// cmd.finishMission("地狱的黑暗");
// cmd.acceptMission("黑鬼天王","地狱的业火");
// cmd.killMonster([{name:"地狱业火", count:14}]);
// cmd.finishMission("地狱的业火");
// cmd.acceptMission("黑鬼天王","地狱的饥饿");
// cmd.killMonster([{name:"岩狱腐狮", count:15}]);
// cmd.finishMission("地狱的饥饿");
// cmd.acceptMission("黑鬼天王","地狱的力量");
// cmd.finishMission("地狱的力量");
// cmd.acceptMission("黑鬼天王","地狱腐狮");
// cmd.killMonster([{name:"地狱腐狮",count:1},{name:"地狱翼狮",count:3}]);
// cmd.finishMission("地狱腐狮");
// cmd.acceptMission("黑鬼天王","熔岩地狱第三层");
// cmd.jumpMap("熔岩地狱三层");
// cmd.finishMission("熔岩地狱第三层");
// cmd.acceptMission("牛鬼","我是小阎王的盟军");

// cmd.repairEquip()   

// cmd.sellRquip(2); 
// cmd.jumpMap("赤炎戈壁");
// cmd.jumpMap("沙漠营地");
// cmd.jumpMap("熔岩地狱一层");
// cmd.jumpMap("熔岩地狱二层");
// cmd.jumpMap("熔岩地狱三层");
// var count = 0;
// do{
//    cmd.abandonMission("最强的妖兽");
//    cmd.acceptMission("小阎王","最强的妖兽");
//    cmd.killMonster([{name:"地狱腐狮",count:1},{name:"奇美拉",count:1}]);
//    count++;
// }while(cmd.player().getLevel() < 36 && count < 50);

// cmd.finishMission("最强的妖兽");
// cmd.acceptMission("小阎王","黑鬼兵团");
// cmd.killMonster([{name:"地狱业火",count:20},{name:"岩狱腐狮",count:20}]);
// cmd.finishMission("黑鬼兵团");
// cmd.acceptMission("小阎王","黑鬼天王");
// cmd.killMonster([{name:"黑鬼天王", count:1}]);
// // for(var i = 0; i<150; i++){
// // cmd.killMonster([{name:"黑鬼天王", count:1}]);
// // }
// cmd.finishMission("黑鬼天王");
// cmd.acceptMission("小阎王","小阎王的承诺");
// cmd.finishMission("小阎王的承诺");
// cmd.acceptMission("牛鬼","完成失魂沙漠高级阶段任务");
// cmd.finishMission("完成失魂沙漠高级阶段任务");


















//战士

cmd.acceptMission("世界村村长","初入世界 1");
cmd.finishMission("初入世界 1");
cmd.acceptMission("云裳","初入世界 2");
cmd.finishMission("初入世界 2");
cmd.acceptMission("云裳","初入世界 3");
cmd.finishMission("初入世界 3");
cmd.acceptMission("东海","初入世界 4");
cmd.killMonster([{name:"哈士奇", count:1}]);
cmd.finishMission("初入世界 4");
cmd.acceptMission("东海","初入世界 5");
cmd.finishMission("初入世界 5");
cmd.acceptMission("小悦","初入世界 6");
cmd.killMonster([{name:"小偷", count:1}]);
cmd.finishMission("初入世界 6");
cmd.acceptMission("小悦","初入世界 7");
cmd.finishMission("初入世界 7");
cmd.acceptMission("悲剧哥","初入世界 8");
cmd.finishMission("初入世界 8");
cmd.acceptMission("井","井水");
cmd.finishMission("井水");
cmd.acceptMission("世界村村长","初入世界 9");
cmd.finishMission("初入世界 9");
cmd.acceptMission("轩姐","进入世界");
cmd.finishMission("进入世界");
cmd.jumpMap("世界之门西方");
cmd.acceptMission("雷恩长老","神选之人");
cmd.finishMission("神选之人");
cmd.acceptMission("雷恩长老","击退邪灵教徒");
cmd.finishMission("击退邪灵教徒");
cmd.acceptMission("狂战士珍尼","珍尼式战术！");
cmd.killMonster([{name:"邪灵教徒杂兵", count:4}]);
cmd.finishMission("珍尼式战术！");
cmd.acceptMission("狂战士珍尼","乘胜追击！");
cmd.killMonster([{name:"小恶魔", count:5}]);
cmd.finishMission("乘胜追击！");
cmd.acceptMission("狂战士珍尼","收集小恶魔之爪");
cmd.killMonsterWithItem(["小恶魔"],"小恶魔之爪",5);//2
cmd.finishMission("收集小恶魔之爪");
cmd.acceptMission("狂战士珍尼","集合兵力");
cmd.acceptMission("战士军哥","解救战士军哥");
cmd.finishMission("解救战士军哥");
cmd.finishMission("集合兵力");
cmd.acceptMission("狂战士珍尼","击杀击败");
cmd.npcBattle("邪灵屠夫","追上去剁了他!!");
cmd.finishMission("击杀击败");
cmd.acceptMission("雷恩长老","大地的腐化");
cmd.finishMission("大地的腐化");
cmd.acceptMission("雷恩长老","前往风之森林");
cmd.jumpMap("风之森林");
cmd.finishMission("前往风之森林");
cmd.acceptMission("丛林守卫","腐化的森林");
cmd.finishMission("腐化的森林");
cmd.acceptMission("丛林守卫","消灭腐化的生物");
cmd.killMonster([{name:"腐化猎豹",count:3},{name:"腐化野狼",count:3}]);
cmd.finishMission("消灭腐化的生物");
cmd.useConsumableItem("苍鹰新手宠物");
cmd.acceptMission("丛林守卫","侦察任务");
cmd.finishMission("侦察任务");
cmd.acceptMission("自然祭司","寻找治疗腐化的方法");
cmd.killMonsterWithItem(["腐化野狼"],"未腐坏的毛皮",5);
cmd.killMonsterWithItem(["猎豹"],"腐坏的毛皮",3);
cmd.finishMission("寻找治疗腐化的方法");
cmd.acceptMission("怒风守卫利昂","亡者移动");
cmd.killMonster([{name:"行尸", count:18}]);
cmd.finishMission("亡者移动");
cmd.acceptMission("怒风守卫利昂","消灭亡者");
cmd.killMonster([{name:"行尸", count:18}]);
cmd.finishMission("消灭亡者");
cmd.acceptMission("怒风守卫利昂","幕后黑手");
cmd.finishMission("幕后黑手");
cmd.acceptMission("怒风守卫利昂","邪恶之人!");
cmd.acceptMission("","亡者复活");
cmd.killMonster([{name:"丛林守卫的尸体", count:1}]);
cmd.finishMission("亡者复活");
cmd.acceptMission("","击败邪灵腐化术师");
cmd.killMonster([{name:"邪灵腐化术师(BOSS)", count:1}]);
cmd.finishMission("击败邪灵腐化术师");
cmd.finishMission("邪恶之人!");
cmd.acceptMission("怒风守卫利昂","前往亡者之地");
cmd.jumpMap("亡者之地");
cmd.finishMission("前往亡者之地");
cmd.acceptMission("怒风族长老","腐化的源头");
cmd.finishMission("腐化的源头");
cmd.acceptMission("怒风族长老","防守工作");
cmd.acceptMission("医疗分队长-雪莉","医疗药品短缺")
cmd.killMonsterWithItem(["腐化尸","骸骨战士"],"防腐化药剂",5)
cmd.acceptMission("防守分队长-尼木","防守准备工作");
cmd.finishMission("医疗药品短缺");
cmd.killMonster([{name:"腐化尸",count:8},{name:"骸骨战士",count:8}]);//可优化
cmd.finishMission("防守准备工作");
cmd.acceptMission("特攻队长-史刚","（精英任务）反击准备工作");
cmd.killMonster([{name:"邪灵屠虐者", count:3}]);
cmd.finishMission("（精英任务）反击准备工作");
cmd.finishMission("防守工作");
cmd.acceptMission("怒风族长老","反击行动");
cmd.jumpMap("恐惧山谷");
cmd.finishMission("反击行动");
cmd.acceptMission("特攻队长-史刚","最后的突击!");
cmd.killMonster([{name:"恐惧骸骨战士", count:20}]);
cmd.finishMission("最后的突击!");
cmd.acceptMission("丛林守卫-水雅","意想不到的援助");
cmd.killMonster([{name:"恐惧行尸", count:20}]);
cmd.finishMission("意想不到的援助");
cmd.acceptMission("狂战士珍尼","珍尼突击！");
cmd.killMonster([{name:"邪灵刺客", count:20}]);
cmd.finishMission("珍尼突击！");
cmd.acceptMission("狂战士珍尼","[精英任务击败恐惧食人魔统领");
cmd.npcBattle("","攻击恐惧食人魔统领");
cmd.finishMission("[精英任务击败恐惧食人魔统领");
cmd.acceptMission("狂战士珍尼","进入邪灵圣堂");
cmd.jumpMap("邪灵圣殿");
cmd.finishMission("进入邪灵圣堂")
cmd.acceptMission("狂战士珍尼","突如其来的消息");
cmd.finishMission("突如其来的消息");
cmd.acceptMission("邪灵教主","失去希望!");
cmd.finishMission("失去希望!");
cmd.acceptMission("丛林守卫-水雅","战略反击");
cmd.killMonster([{name:"邪灵使者",count:8},{name:"邪灵刺客",count:5},{name:"邪灵屠虐者",count:1}]);
cmd.finishMission("战略反击");
cmd.acceptMission("狂战士珍尼","追击邪灵教主");
cmd.killMonster([{name:"邪灵使者",count:8},{name:"邪灵刺客",count:8},{name:"邪灵屠虐者",count:2}]);
cmd.finishMission("追击邪灵教主");
cmd.acceptMission("丛林守卫-水雅","破坏邪灵法阵");
cmd.acceptMission("","破坏右方邪灵法阵");
cmd.killMonster([{name:"法阵守卫者", count:1}]);
cmd.finishMission("破坏右方邪灵法阵");
cmd.acceptMission("","破坏左方邪灵法阵");
cmd.killMonster([{name:"法阵守卫者", count:1}]);
cmd.finishMission("破坏左方邪灵法阵");
cmd.finishMission("破坏邪灵法阵");
cmd.acceptMission("丛林守卫-水雅","[精英任务]决战!");

// //我领取时未成功... // // // 此处领取在线奖励和穿戴 给中间时装是有可2种可能性
cmd.equip("黄金圣斗士时装");
cmd.equip("青铜圣衣");
// // // // // TODO  更换好的装备
    do{
        cmd.abandonMission("击败邪灵教主");
        //第一步:判断装备耐久度
        var durability =  cmd.minDurability();

        //第二步:如果耐久度小于5
        if(durability <= 5){
            //第三步:传送...
               cmd.jumpMap("恐惧山谷");
               cmd.jumpMap("亡者之地");
            //第四步:修理
            cmd.repairEquip();
            cmd.sellRquip();
            //传送回来...
               cmd.jumpMap("恐惧山谷");
               cmd.jumpMap("邪灵圣殿");
        }
        cmd.acceptMission("邪灵教主","击败邪灵教主");
    }while(cmd.player().getLevel() < 21 )

cmd.finishMission("击败邪灵教主");
cmd.finishMission("[精英任务]决战!");
cmd.jumpMap("新生的城市");
cmd.acceptMission("长老","英雄的诞生!");
cmd.finishMission("英雄的诞生!");
cmd.acceptMission("长老","获得新的城市");
cmd.finishMission("获得新的城市");
cmd.toCity();//进入自己的城市
cmd.equip("鹰角长弓");
cmd.pollMail();
cmd.repairEquip()   
cmd.sellRquip(2); 
cmd.jumpMap("太阳之城");


// // // 此处不知道为什么没能连接起来学宠物技能 后来我单独去跑也没能够成功
cmd.learnSkill("宠物训练师", "迅捷宠物技能训练","精确打击", 2);
cmd.learnSkill("宠物训练师", "迅捷宠物技能训练","尖牙利爪", 1);
cmd.learnSkill("宠物训练师", "睿智宠物技能训练","法力恢复", 10);
cmd.learnSkill("宠物训练师", "勇猛宠物技能训练","协助防御劈砍攻击", 4);


cmd.specialCode("85ri8zcztd");
cmd.pollMail();
cmd.useConsumableItem("人物经验卷(30000）");
cmd.useConsumableItem("人物经验卷(30000）");
cmd.useConsumableItem("人物经验卷(30000）");
cmd.pollMail();
// // // 新手大礼包有2个.可只解包了1个
if(cmd.onLineDraw("新手大礼包")){
     cmd.useConsumableItem("新手大礼包");
 }
cmd.useConsumableItem("人物经验卷(30000）");
cmd.useConsumableItem("人物经验卷(30000）");
cmd.repairEquip()   

cmd.sellRquip(2); 
cmd.learnSkill("人物技能训练师", "侠客","纯阳无极功", 4);
cmd.learnSkill("人物技能训练师", "法师","魔法回路", 5);
cmd.learnSkill("人物技能训练师", "战士","先制攻击", 1);
cmd.learnSkill("人物技能训练师", "修真","水疗术", 8);





cmd.alert("完毕1");
// java.lang.Thread.sleep(java.lang.Integer.MAX_VALUE);